package com.yanqu.road.server.cmd.chefduel.process3.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.chefduel.ChefDuelProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.chefduel.ChefDuelMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_CROSS_CHEF_DUEL3_SUPPORT_CAMP, desc = "阵营支持(跨服返回)")
public class ChefDuel3CampSelectFromCrossCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {

        ChefDuelProto.ChefDuel2CampSelectRespMsg respMsg = ChefDuelProto.ChefDuel2CampSelectRespMsg.parseFrom(packet.getBytes());

        ChefDuelMgr.supportCampId3(respMsg.getActivityId(), respMsg.getCampId(), packet.getPlayerId());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
